<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (iOS): CPTLegendEntry Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Core Plot (iOS)
   
   </div>
   <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('interface_c_p_t_legend_entry.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">CPTLegendEntry Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="CPTLegendEntry" --><!-- doxytag: inherits="NSObject,NSCoding-p-p" -->
<p>A graph legend entry.  
 <a href="interface_c_p_t_legend_entry.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for CPTLegendEntry:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="interface_c_p_t_legend_entry__inherit__graph.png" border="0" usemap="#_c_p_t_legend_entry_inherit__map" alt="Inheritance graph"/></div>
<map name="_c_p_t_legend_entry_inherit__map" id="_c_p_t_legend_entry_inherit__map">
<area shape="rect" id="node2" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html" title="NSObject" alt="" coords="24,86,104,117"/><area shape="rect" id="node4" href="http://developer.apple.com/iPhone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="5,6,123,37"/><area shape="rect" id="node6" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html" title="\&lt;NSCoding&#45;p\&gt;" alt="" coords="128,86,249,117"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for CPTLegendEntry:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="interface_c_p_t_legend_entry__coll__graph.png" border="0" usemap="#_c_p_t_legend_entry_coll__map" alt="Collaboration graph"/></div>
<map name="_c_p_t_legend_entry_coll__map" id="_c_p_t_legend_entry_coll__map">
<area shape="rect" id="node2" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html" title="NSObject" alt="" coords="24,86,104,117"/><area shape="rect" id="node4" href="http://developer.apple.com/iPhone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSObject_Protocol/Reference/NSObject.html" title="\&lt;NSObject&#45;p\&gt;" alt="" coords="5,6,123,37"/><area shape="rect" id="node6" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Protocols/NSCoding_Protocol/Reference/Reference.html" title="\&lt;NSCoding&#45;p\&gt;" alt="" coords="128,86,249,117"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="class_c_p_t_legend_entry-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Instance Methods</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Drawing</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_p_t_legend_entry.html#a2f8c70944af02a5086b3cca05fe0dfd6">drawTitleInRect:inContext:scale:</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws the legend title centered vertically in the given rectangle.  <a href="#a2f8c70944af02a5086b3cca05fe0dfd6"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Plot Info</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aba754fa1dd6e59c892eef94715eabfc7"></a><!-- doxytag: member="CPTLegendEntry::plot" ref="aba754fa1dd6e59c892eef94715eabfc7" args="" -->
<a class="el" href="_c_p_t_definitions_8h.html#abd26af4304957387867e6e9e8cef1576">__cpt_weak</a> <a class="el" href="interface_c_p_t_plot.html">CPTPlot</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_legend_entry.html#aba754fa1dd6e59c892eef94715eabfc7">plot</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The plot associated with this legend entry. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeef62e6c5b3de0e2461e868d1c209bf6"></a><!-- doxytag: member="CPTLegendEntry::index" ref="aeef62e6c5b3de0e2461e868d1c209bf6" args="" -->
<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_legend_entry.html#aeef62e6c5b3de0e2461e868d1c209bf6">index</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">index The zero-based index of the legend entry for the given plot. <br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Formatting</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5f4dde93002e42ab2b89e7165d9e69a2"></a><!-- doxytag: member="CPTLegendEntry::textStyle" ref="a5f4dde93002e42ab2b89e7165d9e69a2" args="" -->
<a class="el" href="interface_c_p_t_text_style.html">CPTTextStyle</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_legend_entry.html#a5f4dde93002e42ab2b89e7165d9e69a2">textStyle</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The text style used to draw the legend entry title. <br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">Layout</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af0478a3dfa3c92e94542e36e5119c9a7"></a><!-- doxytag: member="CPTLegendEntry::row" ref="af0478a3dfa3c92e94542e36e5119c9a7" args="" -->
<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_legend_entry.html#af0478a3dfa3c92e94542e36e5119c9a7">row</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The row number where this entry appears in the legend (first row is 0). <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a80ba063a0b18267ac5b9cb27ab46e611"></a><!-- doxytag: member="CPTLegendEntry::column" ref="a80ba063a0b18267ac5b9cb27ab46e611" args="" -->
<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_legend_entry.html#a80ba063a0b18267ac5b9cb27ab46e611">column</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The column number where this entry appears in the legend (first column is 0). <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad5c0200e139f8a75490055341fe3e8a7"></a><!-- doxytag: member="CPTLegendEntry::titleSize" ref="ad5c0200e139f8a75490055341fe3e8a7" args="" -->
<a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGSize.html">CGSize</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_p_t_legend_entry.html#ad5c0200e139f8a75490055341fe3e8a7">titleSize</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The size of the legend entry title when drawn using the textStyle. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A graph legend entry. </p>
</div><hr/><h2>Method Documentation</h2>
<a class="anchor" id="a2f8c70944af02a5086b3cca05fe0dfd6"></a><!-- doxytag: member="CPTLegendEntry::drawTitleInRect:inContext:scale:" ref="a2f8c70944af02a5086b3cca05fe0dfd6" args="(CGRect rect,[inContext] CGContextRef context,[scale] CGFloat scale)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) drawTitleInRect: </td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGRect.html">CGRect</a>)&#160;</td>
          <td class="paramname"><em>rect</em></td>
        </tr>
        <tr>
          <td class="paramkey">inContext:</td>
          <td></td>
          <td class="paramtype">(<a class="elRef" href="http://developer.apple.com/iphone/library/documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html#//apple_ref/doc/c_ref/CGContextRef.html">CGContextRef</a>)&#160;</td>
          <td class="paramname"><em>context</em></td>
        </tr>
        <tr>
          <td class="paramkey">scale:</td>
          <td></td>
          <td class="paramtype">(CGFloat)&#160;</td>
          <td class="paramname"><em>scale</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws the legend title centered vertically in the given rectangle. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">rect</td><td>The bounding rectangle where the title should be drawn. </td></tr>
    <tr><td class="paramname">context</td><td>The graphics context to draw into. </td></tr>
    <tr><td class="paramname">scale</td><td>The drawing scale factor. Must be greater than zero (0). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>Source/<a class="el" href="_c_p_t_legend_entry_8h_source.html">CPTLegendEntry.h</a></li>
<li>Source/CPTLegendEntry.m</li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="interface_c_p_t_legend_entry.html">CPTLegendEntry</a>      </li>

    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a></li>
   </ul>
 </div>


</body>
</html>
